<?php
/**
 * 测试 文件路径 
 *
 * @filesource testSplFile .php
 * @package 
 * @subpackage 
 * @version $id: 0.1, utf8, $
 * @author LD King <kldscs[at]gmail.com>
 * @copyright Copyleft (D.) 2007 - 2009 MiFunny China Inc.
 * @link http://mifunny.info/
 * @example 
 *   
 */
$file = "/home/html/DsCache/trunk/DsCache/test/testSplFile.php/";
//$file = 'jijiji.lp';
$path = pathinfo($file);
$path['dirname'] = trim( $path['dirname'], '\\/');
var_dump( $path );

echo "<br/>-------------------------<br/>\t\n";

$key = trim($_SERVER["REQUEST_URI"], '/').'.html';
print_r( $key )

//$d = preg_split('/\/|\\\/', $file);
//var_dump( $d );
////////////////////
/*$ds = dirname(dirname(__FILE__));
require_once $ds.'/spl_autoload.func.php';

$cache = new htmlfile();
$cache->set('tmp/testSplFile.html', "HTMLJTDDAFFAFFA>HT<ML");
echo $cache->get('tmp/testSplFile.html');*/
//var_dump( pathinfo('dasdsa/file') );






?>

